<?php 
/* SVN FILE: $Id$ */
/* Maestro Test cases generated on: 2009-08-05 02:08:17 : 1249406057*/
App::import('Model', 'Maestro');

class TestMaestro extends Maestro {
	var $cacheSources = false;
	var $useDbConfig  = 'test_suite';
}

class MaestroTestCase extends CakeTestCase {
	var $Maestro = null;
	var $fixtures = array('app.maestro', 'app.maestro_group');

	function start() {
		parent::start();
		$this->Maestro = new TestMaestro();
	}

	function testMaestroInstance() {
		$this->assertTrue(is_a($this->Maestro, 'Maestro'));
	}

	function testMaestroFind() {
		$this->Maestro->recursive = -1;
		$results = $this->Maestro->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Maestro' => array(
			'id'  => 1,
			'maestro_group_id'  => 1,
			'username'  => 'Lorem ipsum dolor sit amet',
			'password'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-08-05 02:14:17',
			'modified'  => '2009-08-05 02:14:17'
			));
		$this->assertEqual($results, $expected);
	}
}
?>